from snownlp import SnowNLP

def NLP_EMOTION(comment_data):
    for data in comment_data:
        s = SnowNLP(data['content'])
        data['emotion'] = '正面' if s.sentiments > 0.5 else '反面'
    return comment_data
# print(s.sentiments)